<template>
	<view>
		<mp-html :content="html_data" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				html_data: '',
			}
		},
		onLoad(e) {
			this.getData(e.type)
			uni.setNavigationBarTitle({
				title: e.type == 1?'使用说明':'关于我们'
			})
		},
		methods: {
			getData(e) {
				let url = ""
				url = e == 1 ? '/site/site_instructions' : '/user/aboutus'
				this.$https.post(url).then(res => {
					this.html_data = e == 1 ? res.data.instructions : res.data
				})
			}
		}
	}
</script>

<style>

</style>